var _tools = require("../../../utils/tools.js"), _tools2 = _interopRequireDefault(_tools);

function _interopRequireDefault(t) {
    return t && t.__esModule ? t : {
        default: t
    };
}

var that, app = getApp();

Page({
    data: {
        share_text: "",
        share_image: "",
        img_url: "",
        isIphoneX: !1
    },
    onLoad: function(t) {
        that = this, wx.getStorageSync("demo_id") && wx.removeStorageSync("demo_id");
    },
    onReady: function() {
        var t = {
            action: "program",
            contr: "index",
            token: wx.getStorageSync("token")
        };
        _tools2.default.request(t, function(t) {
            that.setData(t.info);
        });
    },
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {
        return {
            title: that.data.share.text,
            imageUrl: that.data.share.image,
            path: "bh_clock/pages/index/index?arent_id=" + that.data.share.member_id
        };
    }
});